@extends('layouts.home')
@section('content')
    <form action="{{route('blog.update',$blog)}}" method="post">
        @csrf
        @method('PUT')
        <div class="card">
            <div class="card-header">
                发布博客
            </div>
            <div class="card-body">
                <label for="">文章标题</label>
                <textarea class="form-control" name="title" id="" rows="1">{{$blog['title']}} </textarea>
                <label for="">文章内容</label>
                <textarea class="form-control" name="content" id="" rows="6">{{$blog['content']}}</textarea>
            </div>
            <div class="card-footer text-muted">
                <button type="submit" class="btn btn-success">立即发布</button>
            </div>
        </div>
    </form>

@endsection